package com.ruoyi.business.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 运单轨迹业务对象 freight_vehicle_trail
 *
 * @author ruoyi
 * @date 2024-04-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class FreightVehicleTrailBo extends BaseEntity {

    /**
     * 定位id
     */
    @NotNull(message = "定位id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 运单id
     */
    @NotNull(message = "运单id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long freightId;

    /**
     * 轨迹
     */
    @NotBlank(message = "轨迹不能为空", groups = { AddGroup.class, EditGroup.class })
    private String trail;

    /**
     * 经度
     */
    @NotBlank(message = "经度不能为空", groups = { AddGroup.class, EditGroup.class })
    private String lng;

    /**
     * 纬度
     */
    @NotBlank(message = "纬度不能为空", groups = { AddGroup.class, EditGroup.class })
    private String lat;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 逻辑删除
     */
    @NotNull(message = "逻辑删除不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isDeleted;

    /**
     * 是否补录（Y=是,N=否）
     */
    @NotBlank(message = "是否补录（Y=是,N=否）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isBlue;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long relevanceUserId;

    /**
     * 记录时间
     */
    @NotNull(message = "记录时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date recordTime;

    /**
     * 是否起点
     */
    @NotBlank(message = "是否起点不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isStartPoint;

    /**
     * 是否终点
     */
    @NotBlank(message = "是否终点不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isEndPoint;

    /**
     * 是否运营方添加
     */
    @NotBlank(message = "是否运营方添加不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isOperationAdd;


}
